package com.guanjia.entity;

/*
* 投资
* */

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

public class Invest {
    @TableId(type=IdType.AUTO)
    private Integer id;
    @TableField(value = "userid",fill = FieldFill.INSERT)
    private Integer userId;
    @TableField(value = "creditid",fill = FieldFill.INSERT)
    private Integer creditId;
    @TableField(value = "ordernumber",fill = FieldFill.INSERT)
    private String ordernumber;     //订单编号
    @TableField(value = "investmoney",fill = FieldFill.INSERT)
    private Double investmoney;     //投资金额
    @TableField(value = "status",fill = FieldFill.INSERT)
    private String status;      //投资状态
    @TableField(value = "interest",fill = FieldFill.INSERT)
    private Double interest;     //月还利息
    @TableField(value = "createtime",fill = FieldFill.INSERT)
    private Date createtime;    //投资时间

    public Invest(Integer id, Integer userId,
                  Integer creditId, String ordernumber, Double investmoney,
                  String status, Double interest, Date createtime) {
        this.id = id;
        this.userId = userId;
        this.creditId = creditId;
        this.ordernumber = ordernumber;
        this.investmoney = investmoney;
        this.status = status;
        this.interest = interest;
        this.createtime = createtime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCreditId() {
        return creditId;
    }

    public void setCreditId(Integer creditId) {
        this.creditId = creditId;
    }

    public String getOrdernumber() {
        return ordernumber;
    }

    public void setOrdernumber(String ordernumber) {
        this.ordernumber = ordernumber;
    }

    public Double getInvestmoney() {
        return investmoney;
    }

    public void setInvestmoney(Double investmoney) {
        this.investmoney = investmoney;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Double getInterest() {
        return interest;
    }

    public void setInterest(Double interest) {
        this.interest = interest;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Invest() {
    }

    @Override
    public String toString() {
        return "Invest{" +
                "id=" + id +
                ", userId=" + userId +
                ", creditId=" + creditId +
                ", ordernumber='" + ordernumber + '\'' +
                ", investmoney=" + investmoney +
                ", status='" + status + '\'' +
                ", interest=" + interest +
                ", createtime=" + createtime +
                '}';
    }
}
